int serialRead = 0;
double countTimer = 0;
int count = 0;
int delaySecond = 50;
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);

}

void loop() {
  // put your main code here, to run repeatedly:
  double temperature = sin(countTimer / 2.0) * 3 + sin(countTimer / 10.0 / 0.3845) * 2.25 + 25;
  String t0 = "smbus t0 = ";
  t0 += temperature;
  if (Serial.available() > 0)
  {
    serialRead = Serial.read();
    if (serialRead == '?')
    {
      Serial.println(t0);
    }
  }
  count++;
  countTimer = count / (1000.0 / delaySecond);
//  Serial.println(t0);
  delay(delaySecond);
}